﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.Common.Region
{
    public class Country
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid CountryId { get; set; }
        [MaxLength(2)]
        public string ISOCode2 { get; set; }
        [MaxLength(3), MinLength(3)]
        public string ISOCode3 { get; set; }
        [MaxLength(4), MinLength(1)]
        public string CountryCode { get; set; }
        public string NativeName { get; set; }
        public string EnglishName { get; set; }
        public ICollection<CountryLanguage> OfficialLanguages { get; set; }
        public ICollection<Region> Regions { get; set;  }
        public RegionStructure RegionStructure { get; set; }
    }
}
